for i in [1,2,3,4]:
    for j in [1,2,3,4]:
        if i!=j:
            for k in [1,2,3,4]:
                if (i!=k)and(j!=k):
                    x=i*100+j*10+k
                    print(x)
                
